<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>webpack+angular示例</title>
  <script>
    window.onload = function () {
      if (!document.querySelector('body script')) {
        var script = document.createElement('script')
        script.src="/bundle.js"
        document.body.appendChild(script)
      }
    }
  </script>
</head>
<body>
  
  <div ng-app="myApp">
    <div ng-include="'/src/common/header.html'"></div>
    <div ui-view></div>
    <div ng-include="'/src/common/footer.html'" ></div>
  </div>

</body>
</html>